package day03.statics;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/20
 */
public class EmployeeUtil {
    public static void bonus(Employee e) {
        double currentSalary = e.getSalary();
        double newSalary;
        if (currentSalary > 10000) {
            newSalary = currentSalary * 1.2; // 涨薪20%
        } else {
            newSalary = currentSalary * 1.1; // 涨薪10%
        }
        e.setSalary(newSalary);
    }
}

